import {Routes, RouterModule} from '@angular/router';
import {ModuleWithProviders} from '@angular/core';
import {activityManageComponent} from './activity-manage.component';
import {DataComponent} from './data/data.component';
import {AddMarketingComponent} from './add-marketing/add-marketing.component';


export const routes: Routes = [
  {
    path: '',
    component: activityManageComponent,
    children: []
  },
  {
    path: 'data/:id',
    component: DataComponent,
    children: []
  },
  {
    path: 'add/:id',
    component: AddMarketingComponent,
    children: []
  },
];

export const routing: ModuleWithProviders = RouterModule.forChild(routes);
